<!DOCTYPE html>
<html lang="<?php echo ($lang_url==''? 'es': substr($lang_url, 0, 2)); ?>">
<head>
	<meta charset="utf-8" />

  <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame 
   Remove this if you use the .htaccess -->
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

	<title><?php echo $seo['title']; ?></title>
	<meta name="description" content="<?php echo $seo['description']; ?>" />
	<meta name="author" content="pelimaniaco" />

	<meta name="viewport" content="width=device-width; initial-scale=1.0" />
	
	<link rel="shortcut icon" href="/favicon.ico" />
	<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
	
<?php
	if(isset($this->carabiner)){
		$this->carabiner->display('css');
		$this->carabiner->display('js');
	}
?>
<script type="text/javascript" charset="UTF-8">
		var base_url = "<?php echo Sys::$url_base; ?>",
		lang_url = "<?php echo $lang_url; ?>";
</script>
</head>
<body>
	
	<div>
	  	<form class="frm1" id="form" action="<?php echo base_url($lang_url).(empty($lang_url) ? '' : '/'); ?>panel/series/get_list_tvdb/<?php echo $method_action; ?>" method="POST" enctype="multipart/form-data">
				<div style="margin-left: 260px; width:350px;">
					<p>
						<label for="title"><?php echo lang('txt_serie_form_search_title'); ?></label>
						<input type="text" class="size90" name="title" value="" placeholder="<?php echo lang('txt_serie_form_search_title'); ?>" maxlength="100"/>
					</p>
					<!-- <p>
						<label for="year"><?php echo lang('txt_films_form_search_movie_year'); ?></label>
						<input type="text" class="size90" name="year" value="" placeholder="<?php echo lang('txt_films_form_search_movie_year').' (Opcional)'; ?>" maxlength="150"/>
					</p> -->
					<div class="buttons float-r">
							<a href="javascript:void(0);" class="button middle" id="submit">Buscar</a>
					</div><div class="clear"></div>
				</div>
		</form>
	</div>
	
	<?php if(isset($list)){ ?>
		
		<div class="buttons" style="margin-top:10px; padding:5px;">
				<a href="javascript:void(0);" class="button add" id="info_serie" style="margin-left:35%;">Obtener Informacion del Episodio</a>
		</div>
		<?php if($method_action == 'episode') {?>
			<form class="frm1">
				<div style="margin-left: 260px; width:600px;">
					<p class="small">
						<label for="season"><?php echo lang('txt_season_form_no_season'); ?></label>
						<input type="text" class="size90" id="noSeason" name="season" value="" placeholder="<?php echo '# '.lang('txt_season_form_no_season'); ?>" maxlength="2"/>
					</p>
					<p class="small" style="margin-left: 80px;">
						<label for="episode"><?php echo lang('txt_serie_form_search_episode'); ?></label>
						<input type="text" class="size90" id="noEpisode" name="episode" value="" placeholder="<?php echo '# '.lang('txt_serie_form_search_episode'); ?>" maxlength="2"/>
					</p>
					<div class="clear"></div>
				</div>
			</form>
		<?php }?>
		<div class="result-search-movie" style=" float:left; padding:5px 0 0 60px;">
			<?php foreach ($list as $list_item) { ?>
				<div style="float:left; margin: 5px 45px 10px 0; width: 154px;">	
					<input type="radio" value="<?php echo $list_item['tvdb_id']; ?>" style="margin-left: 45%;" name="id_tvdb" id="id_tvdb"/>
					<!-- <img src="" alt="<?php echo $list_item['original_name']; ?>" width="154" height="228"/> -->
					<span style="display:block; font-size:.8em; color:#444; text-align:center;"><?php echo $list_item['original_name']; ?></span>
				</div>	
			<?php } ?>
		</div>
	<?php } ?>
	
	
	<?php if(isset($error_params)) echo $error_params; ?>
	
</body>
</html>